package com.cushaw.util;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import android.content.Context;

public class CushawUtil {
	public static Properties getProperties(Context context) {
		InputStream fin;
		// File file = new File("/data/data/identify.conf");
		Properties pro = new Properties();
		// if (file.isFile()) {
		try {
			// fin = new FileInputStream("/data/data/identify.conf");
			fin = context.getAssets().open("tel.conf");
			pro.load(fin);
		} catch (FileNotFoundException e) {
			pro = null;
			LogManager.LogShow(Const.DUG_TAG, e.getMessage(), LogManager.ERROR);
		} catch (IOException e) {
			pro = null;
			LogManager.LogShow(Const.DUG_TAG, e.getMessage(), LogManager.ERROR);
		}
		// } else {
		// pro = null;
		// }
		return pro;
	}
}
